﻿
<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="${request.getContextPath()}/stepWip/stepWip?id=${c1?.id}" method="post">
        <div class="bjui-searchBar">
            <g:hiddenField name="SYS_QUERY_NAME" value="stepWip" />
            <g:hiddenField name="EXPORT_CONTENT_NAME" value="Excel" />
            <label>产品型号：</label>
            <input name='part_name' value="${part_name}"/>
            <label>工步：</label>
            <g:select name="step_name" from="${stepList}" data-toggle="selectpicker" data-live-search="true" optionKey="STEP_NAME" optionValue="STEP_DESC" value="${step_name}" noSelection="['':'--ALL--']" />&nbsp;
            <label>工序：</label>
            <g:select name="STAGE_ID" from="${stageList}" data-toggle="selectpicker" data-live-search="true" optionKey="STAGE_ID" optionValue="STAGE_DESC" value="${STAGE_ID}" noSelection="['':'--ALL--']" />&nbsp;
          %{--  <label>日期：</label>
            <input type="text" name="wipTime" class="form-control"
            data-toggle="datepicker" data-pattern="yyyy-MM-dd"
            size="18" id="start-date-input" readonly value="${wipTime}">&nbsp;--}%
            <button type="submit" class="btn-default" data-icon="search">查询</button>&nbsp;
            <button type="button" class="btn-blue" onclick="javascript:bjuiExportExl('#pagerForm','${request.getContextPath()}/stepWip/exportExcel')" data-icon="file-excel-o" title="导出Excel">导出Excel文件</button>&nbsp;

        </div>
    </form>
</div>
<g:if test="${stepWip.size > 0}">
<div class="bjui-pageContent">

        <table data-toggle="tablefixed" data-width="100%" data-nowrap="true">
            <thead>
            <tr>
                <th width="60">NO.</th>
                <th width="150">订单号</th>
                <th width="120">客户型号</th>
                <th width="80">封装形式</th>
                <th width="100">扩散批号</th>
                <th width="140">产品型号</th>

                <th width="80">优先级</th>
                <th width="140">批号</th>
                <th width="80">当前数量</th>
                <th width="80">工序</th>

                <th width="80">工步</th>
                <th width="285">工步描述</th>
                <th width="80">当前状态</th>
                <th width="80">当前设备</th>
                <th width="110">最后操作人</th>
                <th width="150">最后操作时间</th>
                <th width="150">周记</th>
            </tr>
            </thead>
            <tbody>
            <g:each in="${stepWip}" status="i" var="tableInstance">
                <tr>
                    <td width="60">${i+1}</td>
                    <td width="120">${tableInstance.CUSTOMER_ORDER}</td>
                    <td width="120">${tableInstance.CUSTOMER_PART_ID}</td>
                    <td width="80">${tableInstance.RESERVED1}</td>
                    <td width="100">${tableInstance.SUBSTRATE_ID1}</td>

                    <td width="80">${tableInstance.part_name}</td>
                    <td width="80">${tableInstance.priority}</td>
                    <td width="80">${tableInstance.lot_id}</td>
                    <td width="80">${tableInstance.main_qty}</td>
                    <td width="80">${tableInstance.STAGE_ID}</td>
                    <td width="80">${tableInstance.step_name}</td>
                    <td width="150">${tableInstance.step_desc}</td>

                    <td width="110">${tableInstance.state}</td>
                    <td width="80">${tableInstance.equipment_id}</td>
                    <td width="110">${tableInstance.operator1}</td>
                    <td width="150">${tableInstance.updatedtime}</td>
                    <td width="150">${tableInstance.RESERVED4}</td>
                </tr>
            </g:each>

            </tbody>
        </table>

</div>
</g:if>

%{--<script type="text/javascript">--}%
    %{--$(function () {--}%
        %{--$.CurrentNavtab.find('#start-date-input,#end-date-input').datetimepicker({--}%
            %{--format:'yyyy-mm-dd',--}%
            %{--autoclose: true,--}%
            %{--todayBtn: true,--}%
            %{--startView:1,--}%
            %{--minView:1,--}%
            %{--pickerPosition: "bottom-left",--}%
            %{--language:'zh-CN',--}%
            %{--startDate:'2016-01-01'--}%
        %{--});--}%

        %{--$.CurrentNavtab.find('.selectpicker').selectpicker();--}%
    %{--})--}%
%{--</script>--}%